﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace GFC
{
    [Serializable]
    public class FrameDependantFrame : Frame
    {
        private string m_DependancyFrameName;

        public string DependancyFrameName
        {
            get { return m_DependancyFrameName; }
        }

        protected FrameDependantFrame()
        {
        }

        public FrameDependantFrame(string name, Format format, string dependancyFrameName) :
            base(name, format)
        {
            this.m_DependancyFrameName = dependancyFrameName;
        }

        public override bool Equals(object obj)
        {
            FrameDependantFrame frame = obj as FrameDependantFrame;
            if (frame == null)
                return false;
            return base.Equals(obj) && this.DependancyFrameName == frame.DependancyFrameName;
        }
    }
}
